<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<%@ page import="com.kingbi.util.ConstantFiles.UserConstant"%>
	<%@ page import="java.util.List"%>
	<%@ page import="com.kingbi.system.function.jsfBean.FunctionDataBean"%>
	<%
		String path = request.getContextPath();
		List funList = (List) session.getAttribute(UserConstant.USER_MAP_HEAD_FUN_LIST_KEY_NAME);
	%>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link type="text/css" rel="stylesheet" href="<%=path%>/css/top.css" />
		<script type="text/javascript" src="<%=path%>/js/function.js"
			charset="utf-8"></script>
		<title>头页面</title>
		<script type="text/javascript">
			function logout(){
				var conf = window.confirm("是否确定安全退去！");
				if(conf){
					parent.location.href = "<%=path%>/faces/login/logOff.jsp";
				}
			}
			
			function updPwd(){
			    parent.location.href="<%=path%>/faces/system/people/updSelfPwd.jsp";
			  }
			
		</script>
	</head>

	<body>
		<div class="top1">
			<img src="<%=path%>/images/cdb/logo.jpg" width="765" height="93" />
		</div>
		<p class="headR">
			<span class="m1"><a href="javascript:void(0)" target="rightFrame"
						onclick="this.href='faces/system/people/peopleNav.jsf?nav=U'">修改用户信息</a>
			</span>|
			<span class="m2"><a href="javascript:void(0)" target="rightFrame"
						onclick="this.href='faces/system/people/peopleNav.jsf?nav=S'">修改密码</a>
			</span>|
			<span class="m3"><a href="#" onclick="logout()">安全退出</a>
			</span>
		</p>
		<div class="navigation">
			<a href="<%=path%>/faces/toWelcome.jsf" target="rightFrame" class="cur">
				<img src="<%=path%>/images/cdb/icon_05.png" />首页</a>
			<%for (int i = 0; i < funList.size(); i++) {
				FunctionDataBean funModel = new FunctionDataBean();
				funModel = (FunctionDataBean) funList.get(i);
			%>
			<a href="<%=path%>/left.jsf?funCode=<%=funModel.getFuncCode()%>" target="mainFrame">
				<img src="<%=path%>/images/cdb/icon_0<%=i+6%>.png" />
			<%=funModel.getFunName()%></a><%}%>
		</div>
	</body>
</html>
